<?php
###
#  Baing PHP 框架 1.0.0
#  http://baing.co/
#
#  Copyright: 白晓阳
#  License: CC BY-NC-SA 4.0
#  https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh
###

namespace bai\resource;


abstract class Application extends \bai\Resource
{
    public const FAILED = 0;
    public const SUCCEEDED = 1;
    public const DONE = 2;
    public const PROCESSING = 3;
    public const INCOMPLETE = -1;

    protected const RUN_SUCCEEDED = ['status' => self::SUCCEEDED];
    protected const RUN_FAILED = ['status' => self::FAILED];

    protected function close()
    {
        unset($this->runtime['access']);
        parent::close();
    }
}